package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 用户角色
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpUserRole extends Model<JbdpUserRole> {

    private static final long serialVersionUID=1L;

    /**
     * 用户角色ID
     */
    @TableId("USER_ROLE_ID")
    private String userRoleId;

    /**
     * 角色ID
     */
    @TableField("ROLE_ID")
    private String roleId;

    /**
     * 用户ID
     */
    @TableField("USER_ID")
    private String userId;


    public String getUserRoleId() {
        return userRoleId;
    }

    public JbdpUserRole setUserRoleId(String userRoleId) {
        this.userRoleId = userRoleId;
        return this;
    }

    public String getRoleId() {
        return roleId;
    }

    public JbdpUserRole setRoleId(String roleId) {
        this.roleId = roleId;
        return this;
    }

    public String getUserId() {
        return userId;
    }

    public JbdpUserRole setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.userRoleId;
    }

    @Override
    public String toString() {
        return "JbdpUserRole{" +
        "userRoleId=" + userRoleId +
        ", roleId=" + roleId +
        ", userId=" + userId +
        "}";
    }
}
